package com.summer.data.type;

/**
 * @author 345480567@qq.com
 */
public class Union3 <T1, T2, T3> extends Union2<T1, T2> {

    public T3 t3;

    public String toString() {
        return String.format("%s: %s", t1.toString(), t2.toString());
    }

    public static <T1, T2, T3> Union3<T1, T2, T3> create(T1 t1, T2 t2, T3 t3) {
        Union3<T1, T2, T3> u3 = new Union3<>();
        u3.t1 = t1;
        u3.t2 = t2;
        u3.t3 = t3;
        return u3;
    }

}
